﻿/*
* ==============================================================================
*
* FileName: CompanyDto.cs
* Created: 2020/6/08 10:45:49
* Author: Meiam
* Description: 
*
* ==============================================================================
*/
using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Meiam.System.Model.Dto
{

    /// <summary>
    /// MES数据对象
    /// </summary>
    public class CRMCreateTZSQDto : PageParm
    {

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "")]
        public string QueryText { get; set; }

    }


    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class CRMCreateTZSQRequestDto
    {
        /// <summary>
        /// 描述 : 申请单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "source_no")]
        public string source_no { get; set; }

        /// <summary>
        /// 描述 : 申请单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "crm_no")]
        public string crm_no { get; set; }


    }





    /// <summary>
    /// 条码生成主表
    /// </summary>
    public class CRMCreateTZSQResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "code")]
        public int code { get; set; }


        /// <summary>
        /// 描述 : 申请单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "source_no")]
        public string source_no { get; set; }


        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "message")]
        public string message { get; set; }

        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "data")]

        public List<CRMCreateTZSQResponseData> data { get; set; }       
    }
    public class CRMCreateTZSQResponseData
    {
        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "ssource_type")]
        public string ssource_type { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "code")]
        public string code { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sales_order_number")]
        public string sales_order_number { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "customer_name")]
        public string customer_name { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "contract_no")]
        public string contract_no { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sales_order_line_number")]
        public string sales_order_line_number { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "material_code")]
        public string material_code { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "material_name")]
        public string material_name { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "signing_date")]
        public DateTime signing_date { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "signed_quantity")]
        public double signed_quantity { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "unit_price")]
        public double unit_price { get; set; }

        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "amount")]
        public double amount { get; set; }


        /// <summary>
        /// 描述 : 计划
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "sign_for_the_attachment")]
        public string  sign_for_the_attachment { get; set; }


    }   

}
